<?php
//define('ROOT_PATH', dirname(__FILE__));
//echo ROOT_PATH;
require_once ROOT_PATH . '/lib/models/level/Level.php';//Chinh Nguyen add
$list = Level::getAll();
$themeDir = '../../themes/' . $styleSheet;
$baseURL = './CentralController.php?newscode='. $this->getArr['newscode'];//Chinh Nguyen command this
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo $themeDir;?>/css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">@import url("<?php echo $themeDir;?>/css/style.css"); </style>
<style type="text/css">

    .roundbox {
        margin-top: 5px;
        margin-left: 0px;
        width: 98%;
    }

    .roundbox_content {
    	padding-top:0px;
        padding-bottom:15px;
    }
    table{
        margin: 0px;
        padding: 5px;
        border: solid 1px lightslategray;       
    }
    td{
        border:0px;
        border-bottom:solid 1px lightslategray;
        margin: 0px;
        padding: 0px;
    }

</style>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="../../scripts/archive.js"></script>
<script type="text/javascript" src="../../scripts/octopus.js"></script>
</head>
<script type="text/javascript">

function showtext(){
for(i=1;i<=<?php echo count($list)?>;i++){
document.getElementById(i).style.visibility = 'hidden';
}
document.getElementById("intro").style.visibility = 'hidden';
var dropdownIndex = document.getElementById('example').selectedIndex;
var val = document.getElementById('example')[dropdownIndex].value;
if(val==""){
document.getElementById("intro").style.visibility = '';
}
document.getElementById(val).style.visibility = ''; 

//shortcut.text.value=descriptions[shortcut.example.selectedIndex]
}
</script>
<body style="background-color: #FFFFFF;">
<div style="float: left; width: 600px;text-align: left;padding-top: 10px;">	
	<span class="listViewThS1" style='font-weight:bold; font-size:20px;' >Level mapping description</span>
    <form name="combowithtext">
    	<div style="text-align: left;padding-top: 10px;width: 600px;">    	
		<select name="example" id="example"  size="1" onChange="showtext()" >
		<option value="">-Select a level-</option>
		<?php			
		for ($j=0; $j < count($list);$j++) { ;	
			if($list[$j]->getResponsibility()!= null && $list[$j]->getResponsibility()!= ""){
		?>	
                <option value="<?php echo $list[$j]->getId();?>"><span class="newsTitle"  ><?php echo $list[$j]->getRole();?>-</span><span class="nd_bold"><?php echo "Level ".$list[$j]->getLevel(); ?></span></option>			
		<?php }
		 }	?>
		</select>
		</div>
		<div  id="intro" style="height:0px;padding-top: 15px;">
			<!-- <span style='font-weight:bold; font-size:20px;color:orange;'>introduction here</span>  -->
			<div>
				<img src="/themes/beyondT/pictures/career_path.png" border="0" />                                
			</div>
		</div>
		
		<?php for ($i=0; $i < count($list);$i++) { ?>
		<div style="text-align: left; height:0px; visibility: hidden;" id="<?php echo $list[$i]->getId(); ?>" >
			<div id='main_container' style='width:700px; overflow:hidden; border:0px solid lightgrey;padding-bottom:5px;' >
				<div style="padding-bottom: 5px; padding-top: 10px;">
                                    <span style='font-weight:bold; font-size:20px;'><?php echo $list[$i]->getRole();?></span> - <span style='font-weight:bold; font-size:20px;color:orange;'><?php echo "Level ".$list[$i]->getLevel(); ?></span><br>
                                    <span >(Old position: <?php echo $list[$i]->getOldPosition();?>)</span>
				</div>
				<!-- THIS SHOULD BE A NEW ROW /-->
				<div style=''>
					<div class='containers' style="float: left; width: 700px;">
                                            <span style='color:#FE5426;font-weight:bold;'>Minimum Education & Experience Required</span><span> <?php echo $list[$i]->getEducation();?></span>
						
					</div>			
				</div>
				<div style=''>
					<div class='containers' style="float: left; width: 700px;padding-top: 10px;">
						<span style='color:#FE5426;font-weight:bold;'>Responsibility</span>
                                                <div><?php echo $list[$i]->getResponsibility();?></div>
					</div>
				</div>
				<div style=''>					
					<div class='containers' style="float: left; width: 700px;padding-top: 10px;">
						<span style='color:#FE5426;font-weight:bold;'>Accountability</span>
                                                <div><?php echo $list[$i]->getAccountability();?></div>
					</div>
				</div>
                                <div style=''>					
					<div class='containers' style="float: left; width: 700px;padding-top: 10px;">
						<span style='color:#FE5426;font-weight:bold;'>Utilization</span>
                                                <div><?php echo $list[$i]->getUtilization();?></div>
					</div>
				</div>
                                <div style=''>					
					<div class='containers' style="float: left; width: 700px;padding-top: 10px;">
						<span style='color:#FE5426;font-weight:bold;'>Skill Requirement</span></br>                                                                                               
                                                <div>
                                                    <table>
                                                        <tr>
                                                            <td colspan="2"><span style='color:black;font-weight:bold;'>Foundations Skills</span></td>                                                            
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 320px;padding-left:10px;">- Communication</td>
                                                            <td><?php echo $list[$i]->getCommunication();?></td>                                                            
                                                        </tr>
                                                        <tr>                                                            
                                                             <td style="padding-left:10px;">- Time management</td>
                                                             <td><?php echo $list[$i]->getTimeManagement();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Adaptability & Flexibility</td>
                                                             <td><?php echo $list[$i]->getAdaptabilityFlexibility();?></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><span style='color:black;font-weight:bold;'>Leadership Skill</span></td>                                                            
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Leadership</td>
                                                             <td><?php echo $list[$i]->getLeadership();?></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><span style='color:black;font-weight:bold;'>Individual Skill</span></td>                                                            
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Job Knowledge</td>
                                                             <td><?php echo $list[$i]->getJobKnowledge();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Work Quality</td>
                                                             <td><?php echo $list[$i]->getWorkQuality();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Decision Making</td>
                                                             <td><?php echo $list[$i]->getDecisionMaking();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Negotiation</td>
                                                             <td><?php echo $list[$i]->getNegotiation();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Persuading & Influencing</td>
                                                             <td><?php echo $list[$i]->getPersuadingInfluencing();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Inter-personal</td>
                                                             <td><?php echo $list[$i]->getInterPersonal();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Coaching/Delegation</td>
                                                             <td><?php echo $list[$i]->getCoachingDelegation();?></td>
                                                        </tr>
                                                        <tr>
                                                            <td><span style='color:black;font-weight:bold;'>Financial Management</span></td>
                                                            <td><?php echo $list[$i]->getFinancialManagement();?></td>
                                                        </tr>
                                                        <tr>
                                                            <td><span style='color:black;font-weight:bold;'>English</span></td>
                                                            <td><?php echo $list[$i]->getEnglish();?></td>
                                                        </tr>
                                                         <tr>
                                                            <td><span style='color:black;font-weight:bold;'>Certificates (optional)</span></td>
                                                            <td><?php echo $list[$i]->getCertificates();?></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><span style='color:black;font-weight:bold;'>Operation support requirement</span></td>                                                            
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Bid/Pre-sales (lead/year)</td>
                                                             <td><?php echo $list[$i]->getBidPresales();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Client visit meeting</td>
                                                             <td><?php echo $list[$i]->getClientMeeting();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Training (composing or conducting) (session/year)</td>
                                                             <td><?php echo $list[$i]->getTraining();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Seminar/R&D (composing or conducting) (Session/year)</td>
                                                             <td><?php echo $list[$i]->getSeminar();?></td>
                                                        </tr>
                                                         <tr>                                                            
                                                             <td style="padding-left:10px;">- Interview (time/month)</td>
                                                             <td><?php echo $list[$i]->getInterview();?></td>
                                                        </tr>
                                                        <tr>
                                                            <td ><span style='color:black;font-weight:bold;'>Sub Level (average 1 year 1 level)</span></td>
                                                            <td><?php echo $list[$i]->getSubLevel();?></td>
                                                        </tr>                                                                                                                
                                                    </table>
                                                </div>
					</div>
				</div>
				<div style=''>					
					<div class='containers' style="float: left; width: 700px;padding-top: 10px;">
						<span style='color:red;font-weight:bold;font-size:14px;text-decoration: underline'>Skill rating</span>
						<div>
                                                    <table>
                                                        <tr>
                                                            <td style="font-weight:bold;">Level</td>
                                                            <td style="font-weight:bold;">Proficiency</td>
                                                            <td style="font-weight:bold;">Experience</td>
                                                        </tr>
                                                        <tr>
                                                            <td>0</td><td>No Skill</td>
                                                            <td>None</td>
                                                        </tr>
                                                        <tr>
                                                            <td>1</td><td>Limited Knowledge</td>
                                                            <td>Very limited –has performed</td>
                                                        </tr>
                                                        <tr>
                                                            <td>2</td><td>Very limited –has performed</td>
                                                            <td>Performed with assistance on multiple occasions</td>
                                                        </tr>
                                                        <tr>
                                                            <td>3</td><td>Can perform with assistance. Applied Knowledge</td>
                                                            <td>Performed well without assistance</td>
                                                        </tr>
                                                        <tr>
                                                            <td>4</td><td>Can perform without assistance. In- depth knowledge</td>
                                                            <td>Repeated, successful; Can lead or direct others</td>
                                                        </tr>
                                                        <tr>
                                                            <td>5</td><td>Can give expert advice, and lead others to perform.</td>
                                                            <td>Extensive, comprehensive. Sought by others for consultation and leadership. Comprehensive knowledge with ability to make sound judgments</td>
                                                        </tr>
                                                    </table>							
						</div>
					</div>
				</div>
			</div>
		</div>	
		<?php }	?>
	</form>				
</div>



<script type="text/javascript">
<!--
   	if (document.getElementById && document.createElement) {
		initOctopus();
	}
-->
</script>

</body>
</html>